package com.hiss.basic.starter.security.model;

import lombok.Data;

import java.io.Serializable;
import java.util.Collection;


@Data
public class AuthenticationModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 邮箱地址
     */
    private String email;

    /**
     * 角色编码
     */
    private Collection<String> roles;

    /**
     * 权限编码
     */
    private Collection<String> codes;
}
